﻿using System;
using fastCSharp;

namespace diantou.web
{
    /// <summary>
    /// 日志动态
    /// </summary>
    abstract class log<viewType> : currentUserView<viewType>
        where viewType : log<viewType>
    {
        /// <summary>
        /// 日志动态
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        protected userItem[] logs;
        /// <summary>
        /// 最后访问日志标识
        /// </summary>
        protected int logId;
        /// <summary>
        /// 日志动态
        /// </summary>
        /// <param name="logs">日志集合</param>
        protected void load(diantou.dataAccess.item[] logs)
        {
            this.logs = logs.getArray(value => new userItem { Item = value, User = currentUser });
        }
    }
}
